package tgc.edu.exam.entity;

import java.util.UUID;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.springframework.data.annotation.CreatedBy;

/***
 * 学员表
 * 
 * @author Administrator
 *
 */
@Entity
public class Student extends SysUser {
	private String sex;// 性别
	private String idcode;// 身份证号*
	private String nation;// 民族
	private String politics;// 政治面貌
	private String degree;// 文化程度
	private String bron; // 出生日期
	private String email; // 邮箱
	private String officetel; // 办公电话
	private String job; // 现任职务
	private String jobLevel; // 职级
	private String postalCode; // 邮政编码
	private String speciality; // 专业技术职称
	private String address; // 单位地址*
	private String phone; // 手机*
	private String workUnit; // 工作单位*
	private String groupNumber;//组号
	private String siteNumber;//座位号
	private String carnumber;//车牌号
	private String fileuuid;//图片UUID
	private String type;//审核状态
	private String isimmigrant;//是否库区移民
	private String politicstime;//入党时间
	private TbClass tbClass;
	private Teacherevaluation teacherevaluation;
	private EvaluationInformation evaluationInformation;
	private ActivityClass activityClass;
	/** 学员班级ID 在学员进行二次报名时生效  存上一次班级的id **/
	private UUID tbClassid;
	private String yuanying;
	private Boolean group1;	//是否组长
	
	
	public String getYuanying() {
		return yuanying;
	}

	public void setYuanying(String yuanying) {
		this.yuanying = yuanying;
	}

	public UUID getTbClassid() {
		return tbClassid;
	}

	public void setTbClassid(UUID tbClassid) {
		this.tbClassid = tbClassid;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getWorkUnit() {
		return workUnit;
	}

	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}

	@ManyToOne
	@CreatedBy
	public TbClass getTbClass() {
		return tbClass;
	}

	public void setTbClass(TbClass tbClass) {
		this.tbClass = tbClass;
	}

	public String getIdcode() {
		return idcode;
	}

	public void setIdcode(String idcode) {
		this.idcode = idcode;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getPolitics() {
		return politics;
	}

	public void setPolitics(String politics) {
		this.politics = politics;
	}

	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public String getBron() {
		return bron;
	}

	public void setBron(String bron) {
		this.bron = bron;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getOfficetel() {
		return officetel;
	}

	public void setOfficetel(String officetel) {
		this.officetel = officetel;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getJobLevel() {
		return jobLevel;
	}

	public void setJobLevel(String jobLevel) {
		this.jobLevel = jobLevel;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getSpeciality() {
		return speciality;
	}

	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}

	@ManyToOne
	@CreatedBy
	@JoinColumn(name = "teacherevaluation_id")
	public Teacherevaluation getTeacherevaluation() {
		return teacherevaluation;
	}

	public void setTeacherevaluation(Teacherevaluation teacherevaluation) {
		this.teacherevaluation = teacherevaluation;
	}

	public String getGroupNumber() {
		return groupNumber;
	}

	public void setGroupNumber(String groupNumber) {
		this.groupNumber = groupNumber;
	}

	public String getSiteNumber() {
		return siteNumber;
	}

	public void setSiteNumber(String siteNumber) {
		this.siteNumber = siteNumber;
	}

	public String getCarnumber() {
		return carnumber;
	}

	public void setCarnumber(String carnumber) {
		this.carnumber = carnumber;
	}

	@ManyToOne(cascade = { CascadeType.MERGE, CascadeType.REFRESH }, optional = true)
	@JoinColumn(name = "evaluation_id")
	public EvaluationInformation getEvaluationInformation() {
		return evaluationInformation;
	}

	public void setEvaluationInformation(EvaluationInformation evaluationInformation) {
		this.evaluationInformation = evaluationInformation;
	}

	@ManyToOne(cascade = { CascadeType.MERGE, CascadeType.REFRESH }, optional = true)
	@JoinColumn(name = "activityClass_id")
	public ActivityClass getActivityClass() {
		return activityClass;
	}

	public void setActivityClass(ActivityClass activityClass) {
		this.activityClass = activityClass;
	}

	public String getFileuuid() {
		return fileuuid;
	}

	public void setFileuuid(String fileuuid) {
		this.fileuuid = fileuuid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getIsimmigrant() {
		return isimmigrant;
	}

	public void setIsimmigrant(String isimmigrant) {
		this.isimmigrant = isimmigrant;
	}

	public String getPoliticstime() {
		return politicstime;
	}

	public void setPoliticstime(String politicstime) {
		this.politicstime = politicstime;
	}

	public Boolean getGroup1() {
		return group1;
	}

	public void setGroup1(Boolean group1) {
		this.group1 = group1;
	}

}
